package IC.kafka.remote;

import com.IC.domain.vo.AccessControlRecordVO;
import com.ic.domain.dto.FaceRecognitionDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient("IC-es")
public interface EsAccessRecord {

    @GetMapping("/access/access-record")
    public void indexAccessRecord();

    @PostMapping("/access/add")
    public void indexAccessRecords(@RequestBody List<AccessControlRecordVO> records);

    @PostMapping("/face/facedata")
    public void indexFaceData(@RequestBody FaceRecognitionDTO faceRecognitionDTO);

    @PostMapping("/access/addList")
    public void indexList(@RequestBody List<Map> list);

}
